package com.hlm.demo.service.admininfo;

import com.hlm.demo.entity.AdminInfo;
import com.hlm.demo.entity.AdminRole;
import com.hlm.demo.entity.ex.AdminWithRole;

import java.util.List;

public interface IAdminInfoService {

   AdminInfo findOneByAdminId(Integer id);


    List<AdminWithRole> findAll(Integer page, Integer count, String searhMsg,  Integer moduleId);


    int updateAdmin(AdminInfo adminInfo, String allRole);


    int deleteAdmin(Integer adminId);

    int totalCount(String search,Integer moduleId);

    int addOneAdmin(AdminInfo adminInfo, String allRole);

    int addOneRole(AdminRole adminRole);
}
